<template>
	<view>
		<!-- #ifdef MP-WEIXIN -->
		<rich-text class="rich" :nodes="ment"></rich-text>
		<!-- #endif -->
		<!-- #ifdef MP-ALIPAY -->
		<rich-text class="rich" :nodes="ment1"></rich-text>
		<!-- #endif -->
	</view>
</template>

<script>
	import {
		ment
	} from '../../api/api.js'
	import parse from "@/node_modules/mini-html-parser2"
	export default {
		data() {
			return {
				ment: '',
				ment1: []
			}
		},
		onLoad() {
			this.getMent()
		},
		methods: {
			getMent() {
				ment().then(res => {
					console.log(res)
					this.ment = res.data.user_xieyi

					let html = res.data.user_xieyi
					parse(html, (err, nodesList) => {
						this.ment1 = this.ment1.concat(nodesList);
					})
				})
			}
		}
	}
</script>

<style scoped>

</style>
